#!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:Vergil
# datetime:2019/2/25 23:14
# software: PyCharm
from ..models import PostList, PostCategory
from django import template

register = template.Library()
@register.simple_tag()
def get_post_categories():
    return PostCategory.objects.all()